package vista.paneles;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.SwingConstants;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import controlador.Controlador;

public class SliderPanel extends JPanel {
/*
	private JSlider zoom;
	private Controlador controlador;
	private SliderListener listener;
	private JPanel borde;
	
	public SliderPanel(Controlador control) {
		
		setLayout(new BorderLayout());
		controlador = control;
		zoom = new JSlider(SwingConstants.VERTICAL,0,9,1);
		zoom.setMajorTickSpacing(1);
		zoom.setPaintTicks(true);
		zoom.setValue(controlador.getZoom()-12);
		listener = new SliderListener();
		zoom.addChangeListener(listener);
		borde = new JPanel();
		borde.add(zoom);
		borde.add(new JPanel());
		add(new JPanel(),BorderLayout.NORTH);
		add(borde,BorderLayout.CENTER);
	}
	
	public Integer getZoomValue() {
		
		return zoom.getValue();
	}

	public void setZoomValue(Integer zoom) {
		
		this.zoom.setValue(zoom-12);
	}
	
	class SliderListener implements ChangeListener {

		public void stateChanged(ChangeEvent e) {
		
			controlador.setZoom(zoom.getValue()+12,2);
		}
		
	}*/
}
